﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using VM.Common.EntityEnum;

namespace VM.Entity.EntityDto.Member
{
    ///<summary>
    ///用户
    ///</summary>
    public class MemberInfoDto
    {



        #region Model
        private int? _id;
        private int? _registertype;
        private string _name;
        private int? _sex;
        private string _pwd;
        private string _nickname;
        private string _avatar;
        private string _phone;
        private DateTime? _createdatetime;
        private int? _createuserid;
        private int? _usertype;
        private int? _isvip;
        private int? _vipLevelId;
        private int? _iswalletpwd;
        private string? _walletpwd;
        private string? _shortdesc;
        private DateTime? _birthday;
        private int? _countryregion;
        private int? _provinceregion;
        private int? _cityregion;
        private int? _countyregion;
        /// <summary>
        /// 内码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        public int? id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 注册类型
        /// </summary>
        public int? registerType
        {
            set { _registertype = value; }
            get { return _registertype; }
        }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 性别  1 男 2女
        /// </summary>
        public int? sex
        {
            set { _sex = value; }
            get { return _sex; }
        }

        ///// <summary>
        ///// 性别的描述
        ///// </summary>
        public string SexName
        {
            get
            {
                if (sex == (int)SexTypeEnum.Male)
                {
                    return "男性";
                }
                else if (sex == (int)SexTypeEnum.Woman)
                {
                    return "女性";
                }
                else
                {
                    return "未设置";

                }
            }
        }

        /// <summary>
        /// 昵称
        /// </summary>
        public string? nickName
        {
            set { _nickname = value; }
            get { return _nickname; }
        }
        /// <summary>
        /// 头像
        /// </summary>
        public string? avatar
        {
            set { _avatar = value; }
            get { return _avatar; }
        }
        /// <summary>
        /// 电话
        /// </summary>
        public string? phone
        {
            set { _phone = value; }
            get { return _phone; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? createDatetime
        {
            set { _createdatetime = value; }
            get { return _createdatetime; }
        }
        /// <summary>
        /// 创建人内码
        /// </summary>
        public int? createUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }





        /// <summary>
        /// 使用类型
        /// </summary>
        public int? userType
        {
            set { _usertype = value; }
            get { return _usertype; }
        }
        /// <summary>
        /// 是否vip
        /// </summary>
        public int? isVip
        {
            set { _isvip = value; }
            get { return _isvip; }
        }
        /// <summary>
        /// vip类型
        /// </summary>
        public int? vipLevelId
        {
            set { _vipLevelId = value; }
            get { return _vipLevelId; }
        }



        /// <summary>
        /// vip名称
        /// </summary>
        public string vipLevelName { get; set; }



        /// <summary>
        /// 是否钱包密码
        /// </summary>
        public int? isWalletPwd
        {
            set { _iswalletpwd = value; }
            get { return _iswalletpwd; }
        }
 
        /// <summary>
        /// 简介
        /// </summary>
        public string? shortDesc
        {
            set { _shortdesc = value; }
            get { return _shortdesc; }
        }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? birthDay
        {
            set { _birthday = value; }
            get { return _birthday; }
        }
        /// <summary>
        /// 国家内码
        /// </summary>
        public int? countryRegion
        {
            set { _countryregion = value; }
            get { return _countryregion; }
        }
        /// <summary>
        /// 省份内码
        /// </summary>
        public int? provinceRegion
        {
            set { _provinceregion = value; }
            get { return _provinceregion; }
        }
        /// <summary>
        /// 市内码
        /// </summary>
        public int? cityRegion
        {
            set { _cityregion = value; }
            get { return _cityregion; }
        }
        /// <summary>
        /// 县区内码
        /// </summary>
        public int? countyRegion
        {
            set { _countyregion = value; }
            get { return _countyregion; }
        }

        /// <summary>
        /// 二维码图片
        /// </summary>
        public string? qrCodeImgUrl { get; set; }

        /// <summary>
        /// 二维码关键信息
        /// </summary>
        public string  qrCodeInfo { get; set; }
         
        #endregion




        ///// <summary>
        ///// 在职状态文字描述
        ///// </summary>
        //public string JobStatusDescription
        //{
        //    get
        //    {

        //        return EnumManager.GetJobStatusRemark(JobStatus);


        //    }
        //}
    }
}
